<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>CRUD</div>
        <div><?php echo anchor('upuz/create','Create'); ?></div>
        
        <?php foreach($results['results'] as $result):?>
        <p>
            <?php foreach($results['fields'] as $field): ?>
                <?php echo $field.': '.$result->$field."<br>"; ?>
            <?php endforeach; ?>
        <?php echo anchor('upuz/delete/'.$result->id, '[Delete record]'); ?>
        <?php echo anchor('upuz/update/'.$result->id, '[Update record]'); ?>
        </p>
        <?php endforeach; ?>
        
    </body>
</html>
